// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTableDisableConstraint.h"
#include "../SQLName.h"
#include "../../visitor/SQLASTVisitor.h"

// @Override
void SQLAlterTableDisableConstraint::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTableDisableConstraint)))
  {
    acceptChild(visitor, this->constraintName);
  }
  visitor->endVisit(SharedObject(SQLAlterTableDisableConstraint));
}

SQLName_ptr SQLAlterTableDisableConstraint::getConstraintName()
{
  return constraintName;
}

void SQLAlterTableDisableConstraint::setConstraintName(SQLName_ptr constraintName)
{
  this->constraintName = constraintName;
}
